﻿using System;

namespace 裂开再裂开
{
    class Square
    {
        public double r { get; set; }

        public int a { get; set; }
        public int b { get; set; }

        public void S1( double r)
        {
            double Sy = 3.14 * r * r;
            Console.WriteLine("该圆面积为：{0}", Sy);
        }
        public void S1(int a, int b)
        {
            int Sz = a * b;
            Console.WriteLine("该矩形面积为：{0}", Sz);

        }
        static void Main(string[] args)
        {
            Square Square = new Square { };
            double r = 2;
            int a = 4;
            int b = 5;
            Square.S1(r);
            Square.S1(a, b);
        }
    }
}
